<%@ page pageEncoding="UTF-8" %>
<%@ page import="java.util.*,jp.co.technotree.common.util.*,jp.co.technotree.apl.cmd.user.Usr1000Bean.*" %>
<jsp:useBean id="formBean" class="jp.co.technotree.apl.cmd.user.Usr2000Bean" scope="request" />
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>ユーザの登録</title>
<jsp:include page="/jsp/common/include.jsp"></jsp:include>
<script type="text/javascript">
</script>
</head>
<body>
<form action="usr2000" method="post">
<jsp:include page="/jsp/common/menu.jsp"></jsp:include>
<div id="content">
	<div id="pan">利用者 > 登録</div>
	<h1><span class="shape1"></span>利用者の登録</h1>
	
	<h2><span class="shape2"></span>メッセージ</h2>
	<div id="messagebox" class="contentbox1">
		<%=formBean.message %>
	</div>
	
	<h2><span class="shape2"></span>登録</h2>
	<div class="submenu contentbox1">
		<p><font color="red">*</font>は必須項目です。</p>
		<p class="errormsg"><%=formBean.getErrorMap().getErrorMsg("userCd") %></p>
		<p class="errormsg"><%=formBean.getErrorMap().getErrorMsg("userName") %></p>
		<p class="errormsg"><%=formBean.getErrorMap().getErrorMsg("password1") %></p>
		<p class="errormsg"><%=formBean.getErrorMap().getErrorMsg("password2") %></p>
		<p class="errormsg"><%=formBean.getErrorMap().getErrorMsg("userKana") %></p>
		<p class="errormsg"><%=formBean.getErrorMap().getErrorMsg("mailAddr") %></p>
		<p class="errormsg"><%=formBean.getErrorMap().getErrorMsg("enableCate") %></p>
		<p class="errormsg"><%=formBean.getErrorMap().getErrorMsg("expireDate") %></p>
	</div>
	<div class="contentbox3">
		<table>
			<tr>
				<th align="left" class="leftform"><font color="red">*</font>ユーザID</th>
				<td class="<%=formBean.getErrorMap().isError("userCd")?"regerror":"" %>">
					<input type="text" class="searchword size1" name="userCd" value="<%=formBean.getJspValue("userCd") %>">
					<input type="submit" value="重複チェック" class="size2" name="userCheckBtn">
					<%=formBean.hasUserMessage%>
				</td>
			</tr>
			<tr>
				<th align="left" class="leftform"><font color="red">*</font>ユーザ名</th>
				<td class="<%=formBean.getErrorMap().isError("userName")?"regerror":"" %>">
					<input type="text" class="searchword size1" name="userName" value="<%=formBean.getJspValue("userName") %>">
				</td>
			</tr>
			<tr>
				<th align="left" class="leftform"><font color="red">*</font>パスワード</th>
				<td class="<%=formBean.getErrorMap().isError("password1")?"regerror":"" %>">
					<input type="password" class="searchword size1" name="password1" value="<%=formBean.getJspValue("password1") %>">
				</td>
			</tr>
			<tr>
				<th align="left" class="leftform"><font color="red">*</font>パスワード確認</th>
				<td class="<%=formBean.getErrorMap().isError("password2")?"regerror":"" %>">
					<input type="password" class="searchword size1" name="password2" value="">
				</td>
			</tr>
			<tr>
				<th align="left" class="leftform"><font color="red"></font>ユーザカナ</th>
				<td class="<%=formBean.getErrorMap().isError("userKana")?"regerror":"" %>">
					<input type="text" class="searchword size1" name="userKana" value="<%=formBean.getJspValue("userKana") %>">
				</td>
			</tr>
			<tr>
				<th align="left" class="leftform"><font color="red"></font>メールアドレス</th>
				<td class="<%=formBean.getErrorMap().isError("mailAddr")?"regerror":"" %>">
					<input type="text" class="searchword size1" name="mailAddr" value="<%=formBean.getJspValue("mailAddr") %>">
				</td>
			</tr>
			<tr>
				<th align="left" class="leftform"><font color="red"></font>コメント</th>
				<td class="<%=formBean.getErrorMap().isError("comment")?"regerror":"" %>">
					<input type="text" class="searchword size1" name="comment" value="<%=formBean.getJspValue("comment") %>">
				</td>
			</tr>
			<tr>
				<th align="left" class="leftform"><font color="red">*</font>有効区分</th>
				<td class="<%=formBean.getErrorMap().isError("enableCate")?"regerror":"" %>">
					<select name="enableCate">
						<option value="0" <%="0".equals(formBean.enableCate) ? "selected":"" %>>有効</option>
						<option value="1" <%="1".equals(formBean.enableCate) ? "selected":"" %>>無効</option>
					</select>
				</td>
			</tr>
			<tr>
				<th align="left" class="leftform"><font color="red">*</font>有効期限</th>
				<td class="<%=formBean.getErrorMap().isError("expireDate")?"regerror":"" %>">
					<input type="text" class="searchword size1" name="expireDate" value="<%=formBean.getJspValue("expireDate") %>">
				</td>
			</tr>
			<tr>
				<td align="center" colspan="2" class="leftform"><input type="submit" value="確認" class="size2" name="nextBtn"></td>
			</tr>
		</table>
	</div>
</div>
<div id="footer">Copyright © 2011 TECHNOTREE CO., LTD. All Rights Reserved.</div>
<input type="hidden" name="userUCd" value="<%=formBean.getJspValue("userUCd") %>">
<input type="hidden" name="returnPath" value="<%=formBean.returnPath %>">
<input type="hidden" name="returnData" value="<%=formBean.returnData %>">
</form>
</body>
</html>
